from __future__ import annotations


def attribute_list(service: "Service"):
    if service.app.actorList.size() == 0:
        return []
    ac = service.app.actorList.getValue(0)
    if ac.attributes is None:
        return []
    if hasattr(ac, "is_standard_actor"):
        return service.app.actorList.getValue(0).attributes.keys()
    else:
        return list(ac.attributes.keys())
